import * as TYPES from "../action_type";

let custom = {
    //  首页
    home_get(home_data) {
        return {
            type: TYPES.HOME_GET,
            home_data
        }
    },
    home_edit(save_data) {
        return {
            type: TYPES.HOME_EDIT,
            save_data
        }
    },
    home_search(search_data) {
        return {
            type: TYPES.HOME_SEARCH,
            search_data
        }
    },
    //    用户管理页 
    management_get(management_data) {
        return {
            type: TYPES.MANAGEMENT_GET,
            management_data
        }
    },
    management_edit(save_num) {
        return {
            type: TYPES.MANAGEMENT_EDIT,
            save_num
        }
    },
    management_editSave(Save_transfer,second_transfer) {
        return {
            type: TYPES.MANAGEMENT_EDIT_SAVE,
            Save_transfer,second_transfer
        }
    },
    management_search(search_num) {
        return {
            type: TYPES.MANAGEMENT_SEARCH,
            search_num
        }
    },
    management_delete(){
        return{
            type:TYPES.MANAGEMENT_DELETE
        }
    },
    managementAdd(add_val){
        return{
            type:TYPES.MANAGEMENT_ADD,
            add_val
        }
    },
    //    标准管理页 
    stand_get(stand_data) {
        return {
            type: TYPES.STANDARD_GET,
            stand_data
        }
    },
    stand_edit(stand_num) {
        return {
            type: TYPES.STANDARD_EDIT,
            stand_num
        }
    },
    stand_upload(upload_pay){
        return{
            type:TYPES.STANDARD_UPLOAD,
            upload_pay
        }
    }
    ,
    //  动态
    dynamic_get(dynamic_data) {
        return {
            type: TYPES.DYNAMIC_GET,
            dynamic_data
        }
    },
    dynamic_edit(dynamic_num) {
        return {
            type: TYPES.DYNAMIC_EDIT,
            dynamic_num
        }
    },
    dynamic_search(dynamic_search) {
        return {
            type: TYPES.DYNAMIC_SEARCH,
            dynamic_search
        }
    },
    dynamic_wang(wang_data) {
        return {
            type: TYPES.DYNAMIC_WANG,
            wang_data
        }
    },
    edit_img(){
        return{
            type:TYPES.EDIT_IMG,
        }
    },
    edit_falseImg(){
        return{
            type:TYPES.EDIT_FALSE_IMG,
        }
    },
    //数据导入
    dataImport(import_data){
        return{
            type:TYPES.DATA_IMPORT,
            import_data
        }
    },
    dataSearch(dataSearch_num){
        return{
            type:TYPES.DATA_SEARCH,
            dataSearch_num
        }
    },
    data_child(data_child_data){
        return{
            type:TYPES.DATA_CHILDREN,
            data_child_data
        }
    },
    // 数据管理
    dataManage(manageData){
        return {
            type:TYPES.DATA_MANAGEMENT_GET,
            manageData
        }
    },
    manage_select(manage_select_val){
        return{
            type:TYPES.DATA_MANAGEMENT_SELECT,
            manage_select_val
        }
    },
    manage_save(manage_save_val){
        return{
            type:TYPES.DATA_MANAGEMENT_SAVE,
            manage_save_val
        }
    },
    manage_see(manage_seeVal){
        return{
            type:TYPES.DATA_MANAGEMENT_SEE,
            manage_seeVal
        }
    },
    manage_key(pay_key){
        return{
            type:TYPES.DATA_MANAGEMENT_KEY,
            pay_key
        }
    },
    manage_content(content_val){
        return{
            type:TYPES.DATA_MANAGEMENT_CONTENT,
            content_val
        }
    },
    manage_second_content(second_content){
        return{
            type:TYPES.MANAGEMENT_SECOND_CONTENT,
            second_content
        }
    }
}

export default custom;